#!/usr/bin/python
import os

pwd = os.getcwd()

files = os.listdir(pwd)

for file in files:
 if (file.endswith(".asm")):
  print file
  os.system("fasm " + file)

